QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
DEFINES += _WINDOWS
SOURCES += \
    bookdelegate.cpp \
    isr_work/CardDataParser.cpp \
    isr_work/Global_Function.cpp \
    isr_work/JsonRpcApi.cpp \
    isr_work/JsonRpcClient.cpp \
    isr_work/JsonRpcDispatch.cpp \
    isr_work/JsonRpcServer.cpp \
    isr_work/JsonRpcServerConnection.cpp \
    isr_work/JsonRpcServerMethod.cpp \
    isr_work/JsonRpcSocket.cpp \
    isr_work/JsonRpcSource.cpp \
    isr_work/JsonRpcUtil.cpp \
    isr_work/LastWorker.cpp \
    isr_work/LogicWorker.cpp \
    isr_work/MyStringArray.cpp \
    isr_work/Platform_Interface.cpp \
    isr_work/PublicData.cpp \
    isr_work/SheetInfoReader.cpp \
    isr_work/Socket_Client.cpp \
    isr_work/Sql_DataBase.cpp \
    isr_work/TheManager.cpp \
    isr_work/TimerSpy.cpp \
    isr_work/json/json_reader.cpp \
    isr_work/json/json_value.cpp \
    isr_work/json/json_writer.cpp \
    isr_work/km_omrinfo.cpp \
    main.cpp \
    mainwindow.cpp

HEADERS += \
    bookdelegate.h \
    initdb.h \
    isr_work/CardDataParser.h \
    isr_work/Global_Function.h \
    isr_work/IsrScan.h \
    isr_work/JsonRpc.h \
    isr_work/JsonRpcApi.h \
    isr_work/JsonRpcClient.h \
    isr_work/JsonRpcDispatch.h \
    isr_work/JsonRpcException.h \
    isr_work/JsonRpcServer.h \
    isr_work/JsonRpcServerConnection.h \
    isr_work/JsonRpcServerMethod.h \
    isr_work/JsonRpcSocket.h \
    isr_work/JsonRpcSource.h \
    isr_work/JsonRpcUtil.h \
    isr_work/LastWorker.h \
    isr_work/LogicStruct.h \
    isr_work/LogicWorker.h \
    isr_work/MyStringArray.h \
    isr_work/Platform_Interface.h \
    isr_work/PublicData.h \
    isr_work/SheetInfoReader.h \
    isr_work/Socket_Client.h \
    isr_work/Sql_DataBase.h \
    isr_work/TheManager.h \
    isr_work/TimerSpy.h \
    isr_work/UserData.h \
    isr_work/define.h \
    isr_work/icr_8000.h \
    isr_work/json/autolink.h \
    isr_work/json/config.h \
    isr_work/json/forwards.h \
    isr_work/json/json.h \
    isr_work/json/json_batchallocator.h \
    isr_work/json/json_internalarray.inl \
    isr_work/json/json_internalmap.inl \
    isr_work/json/json_valueiterator.inl \
    isr_work/json/reader.h \
    isr_work/json/value.h \
    isr_work/json/writer.h \
    isr_work/km_omrinfo.h \
    mainwindow.h

TRANSLATIONS += \
    IsrReaderQt_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    IsrReaderQt.qrc

DISTFILES += \
    IsrReaderQt_zh_CN.qm

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/third_party/fmt-8.1.1/lib/ -lfmt
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/third_party/fmt-8.1.1/lib/ -lfmtd
else:unix:!macx: LIBS += -L$$PWD/third_party/fmt-8.1.1/lib/ -lfmt

INCLUDEPATH += $$PWD/third_party/fmt-8.1.1/include
DEPENDPATH += $$PWD/third_party/fmt-8.1.1/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/third_party/fmt-8.1.1/lib/libfmt.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/third_party/fmt-8.1.1/lib/libfmtd.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/third_party/fmt-8.1.1/lib/fmt.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/third_party/fmt-8.1.1/lib/fmtd.lib
else:unix:!macx: PRE_TARGETDEPS += $$PWD/third_party/fmt-8.1.1/lib/libfmt.a
